<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="c-formwork_id" class="control-label col-xs-12 col-sm-2">关联模板:</label>
        <div class="col-xs-12 col-sm-8">
            <select data-rule="required" class="form-control selectpicker" name="row[formwork_id]">
                <option value="">请选择要关联到的模板</option>
                {foreach $list as $vo}
                <option value="{$vo.id}" {$row.formwork_id == $vo.id?'selected':''}>{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
